package com.lier.gulimall.auth.feign;

import com.lier.common.utils.R;
import com.lier.common.vo.GiteeTokenVo;
import com.lier.common.vo.MemberRegisterVo;
import com.lier.gulimall.auth.vo.UserLoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author liyd
 * @description
 * @date 2025/8/22 16:51
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("member/member/register")
    R register(@RequestBody MemberRegisterVo MemberRegisterVo);

    @PostMapping("member/member/login")
    R login(@RequestBody UserLoginVo memberLoginVo);

    @PostMapping("member/member/gitee/oauth2/login")
    R giteeLogin(@RequestBody GiteeTokenVo giteeTokenVo);
}
